// 配置编译环境和线上环境之间的切换
const env = process.env

let config = {
  host: "",
  port: "",
  baseUrl: "",
  infoUrl:"",
  webRouterIntercept: false, // 登录拦截
  type: env.VUE_APP_TITLE,
  redirect: 'http://dev.ctoupiao.com/H5',
  shareLink:'',
  isLogining: true,
  localRedirect: '',
  shareImg:'https://dev.ctoupiao.com/api/r/5/7/47147fcc267f42fa827942ab09b5e190_1622211482204.jpg',
  theme:"#FB4723",
  // theme:"",
  version: env.VUE_APP_VERSION,  // 版本号
  routerBase: env.BASE_URL // VueRouter base，同nginx配置
}


if (config.type === 'development') {//开发
  config.port=''
  config.baseUrl = '/api'
  // config.host='https://dev.ctoupiao.com'
  config.host=''
} else if (config.type === 'test') {//测试
  config.host = ''
  config.baseUrl = '/test/api/'
  config.infoUrl='/test/infoApi/'
} else if(config.type === 'beta') {//预发布
  config.baseUrl = ''
  config.host = ''
} else if (config.type === 'production') {//生产
  config.baseUrl = '/api/'
  config.infoUrl = '/infoApi/'
}
export default config